package cn.cy.behavior.strategy.general;

/**
 * @author yangxq
 * @desc
 * @date 2025-05-09
 */
public class GeneralClient {

    public static void main(String[] args) {
        Payment payment1 = new Payment("CREDIT_CARD");
        payment1.pay(100.0); // 使用信用卡支付: 100.0

        Payment payment2 = new Payment("ALIPAY");
        payment2.pay(200.0); // 使用支付宝支付: 200.0

        Payment payment3 = new Payment("WECHAT_PAY");
        payment3.pay(300.0); // 使用微信支付: 300.0
    }

}
